﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using sexhealth.console.service.post;
using sexhealth.console.service.post.vo;

public partial class setup_updatePostURL : System.Web.UI.Page
{
    PostService postService = new PostService();
    protected void Page_Load(object sender, EventArgs e)
    {
        IList<PostVO> posts = postService.DaoGetAllVO<PostVO>();
        foreach (PostVO p in posts) 
        {
            if (p.HtmlContent.IndexOf("60.248.19.166:365") > -1) 
            {
                p.HtmlContent.Replace("60.248.19.166:365", "www.ready365.com.tw");
            }
        }
    }
}
